package com.zhou.controller;

import com.zhou.beans.UserReq;
import com.zhou.client.UserClient;
import com.zhou.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("user")
public class UserController implements UserClient {

    @Autowired
    private UserService userService;

    @RequestMapping("get")
    public String getUser(){
        System.out.println("服务收到访问");
        return userService.getUser();
    }

}
